package problem;

public class Rectangle extends Shape{
    double b1;
    double b2;

    public Rectangle(double b1, double b2) {
        this.b1 = b1;
        this.b2 = b2;
    }


    @Override
    double getOutline() {
        return (b1 + b2) * 2;
    }

    @Override
    double getArea() {
        return b1 * b2;
    }
}
